package org.softmed.rest.config;

import java.util.ArrayList;
import java.util.List;

import org.softmed.rest.config.Resource;

public class Module {
	Long id;

	String name;
	boolean active = true;

	String relativeUri;

	List<Resource> resources = new ArrayList<Resource>();

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Resource> getResources() {
		return resources;
	}

	public void setResources(List<Resource> resources) {
		this.resources = resources;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	private Object readResolve() {
		resources = new ArrayList<Resource>();
		return this;
	}

	public String getRelativeUri() {
		return relativeUri;
	}

	public void setRelativeUri(String relativeUri) {
		this.relativeUri = relativeUri;
	}

	// public Integer getIndex() {
	// return index;
	// }
	//
	// public void setIndex(Integer index) {
	// this.index = index;
	// }
}
